/* Copyright (c) xiaozhi 2006 wise */

#define Len 10

typedef struct array LineList;

struct array
{
	int date[Len];
	int len;
};

/* array fact length */
int length(struct array arrayTable);

/* insert date */
extern LineList insert(struct array arrayTable, int insertDate, int position);

/* delete array element */
void deleteArray(struct array arrayTable, int position);

/* set array element NULL */
void setnull(struct array arrayTable);

/* Locate array element position */
int locate(struct array arrayTable, int position);

/* get date */
int getdate(struct array arrayTable, int position);

/* prior a date */
int prior(struct array arrayTable, int position);

/* next the date */
int next(struct array arrayTable, int position);

/* output array element */
void output(struct array arrayTable);
